package server_center

import (
	"github.com/flipped-aurora/gin-vue-admin/server/api/v1"
	"github.com/flipped-aurora/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type SysLogRouter struct {
}

// InitSysLogRouter 初始化 sysLog表 路由信息
func (s *SysLogRouter) InitSysLogRouter(Router *gin.RouterGroup) {
	sysLogRouter := Router.Group("sysLog").Use(middleware.OperationRecord())
	sysLogRouterWithoutRecord := Router.Group("sysLog")
	var sysLogApi = v1.ApiGroupApp.Server_centerApiGroup.SysLogApi
	{
		sysLogRouter.POST("createSysLog", sysLogApi.CreateSysLog)             // 新建sysLog表
		sysLogRouter.DELETE("deleteSysLog", sysLogApi.DeleteSysLog)           // 删除sysLog表
		sysLogRouter.DELETE("deleteSysLogByIds", sysLogApi.DeleteSysLogByIds) // 批量删除sysLog表
		sysLogRouter.PUT("updateSysLog", sysLogApi.UpdateSysLog)              // 更新sysLog表
	}
	{
		sysLogRouterWithoutRecord.GET("findSysLog", sysLogApi.FindSysLog)       // 根据ID获取sysLog表
		sysLogRouterWithoutRecord.GET("getSysLogList", sysLogApi.GetSysLogList) // 获取sysLog表列表
	}
}
